package com.pmcc.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * 菜单 VO
 */
public class ModuleVo {

    private String id;// 主键

    private String text;// 名称

    private String code;//编号

    private Integer level;//等级

    private String url;// url

    private String icon;// 图标

    private String parentId;// 父级id

    private String eName;//英文名称

    private String clickEvent;//操作方法

    private String status;//状态

    private String type;//功能标识 0菜单 1工具栏按钮 2请求 3行操作按钮 4页面按钮

    private Integer sortNo;//排序编号

    /* 下拉树用 */
    private String state;// 树状态

    private String parentName;// 父级菜单名称

    private boolean checked;// 是否选中

    private List<ModuleVo> children = new ArrayList<ModuleVo>();

    private int flag;//判断是否存在子菜单，存在为0，不存在为1


    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public List<ModuleVo> getChildren() {
        return children;
    }

    public void setChildren(List<ModuleVo> children) {
        this.children = children;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public String getClickEvent() {
        return clickEvent;
    }

    public void setClickEvent(String clickEvent) {
        this.clickEvent = clickEvent;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
}
